package com.cug.nageoffer.user.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.cug.nageoffer.model.entity.Post;
import com.cug.nageoffer.model.vo.PostVo;
import com.cug.nageoffer.model.vo.Result;

import java.io.IOException;
import java.util.List;

public interface PostService extends IService<Post> {
    Result<String> post(Post requestParam) throws IOException;

    Result<String> delete(Long id);

    Result<List<Post>> getById(List<Long> ids);

    Result<List<Post>> getByUser(List<Long> ids);

    Result<List<PostVo>> getAll();
}
